﻿namespace NHibernateExample
{
    public class CamelotSharePointDriver : NHibernate.Driver.ReflectionBasedDriver
    {
        public CamelotSharePointDriver()
            : base("Camelot.SharePointConnector", "Camelot.SharePointConnector", "Camelot.SharePointConnector.Data.SharePointConnection", "Camelot.SharePointConnector.Data.SharePointCommand")
        { }

        public override string NamedPrefix { get { return "?"; } }

        public override bool SupportsMultipleOpenReaders { get { return false; } }

        public override bool SupportsMultipleQueries { get { return false; } }

        protected override bool SupportsPreparingCommands { get { return false; } }

        public override bool UseNamedPrefixInParameter { get { return true; } }

        public override bool UseNamedPrefixInSql { get { return true; } }
    }
}
